SDK/J Authentication Package ver1.0
RICOH Confidential

jp.co.ricoh.dsdk.scard.option.security
Interface SignCredential

All Known Implementing Classes:
jp.co.ricoh.dsdk.scard.option.security.AbstractSignCredential

public interface SignCredential

This interface defines the functionality used by a card service to sign a block of data that matches the key's input length .


Method Summary
 int getInputLength()
          Return the input credential`s length that the cryptographic algorithm can process .
 byte[] sign(byte[] credential)
          Sign/encrypt a block of data .
 

Method Detail

sign

public byte[] sign(byte[] credential)
            throws java.lang.RuntimeException
Sign/encrypt a block of data .

Parameters:
credential - The credential to be signed . Its length must match the length obtained with getInputLength() method.
Returns:
the signature/cryptogram .
Throws:
java.lang.RuntimeException - Because signing credential is a fatal process, if it is failed, throws an unchecked exception .

getInputLength

public int getInputLength()
Return the input credential`s length that the cryptographic algorithm can process .

Returns:
the length of credential .

SDK/J Authentication Package ver1.0
RICOH Confidential